package com.zhizuobiao.dao;



import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**

@author linglong
@description BaseMapper:所有mapper接口的父接口,提供基础增删改查方法
@date 2018-02-28 20:18

*/


@Repository
public interface BaseMapper<T,ID extends Serializable> {

    void saveOne(T t) throws Exception;

    void updateOne(T t) throws Exception;

    T findOne(ID id) throws Exception;

    List<T> findAll() throws Exception;

    void deleteOne(ID id) throws  Exception;

}
